import com.dao.ManagersDao;
import com.pojo.Managers;
import com.util.MyBatisUtil;
import org.junit.Test;

import java.util.List;

public class MyBatisResultMap {

    @Test
    public void findAll() {
        ManagersDao managersDao = MyBatisUtil.getMapper(ManagersDao.class);

        List<Managers> managers = managersDao.findAll();

        for (Managers manager : managers) {
            System.out.println(manager);
        }
    }
}
